home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-11-16 | 1.5 KB | 43 lines |
- /*****************************************************************************
- * MAKEFILE
- *
- * PURPOSE: Create the file, "2.txt", by sorting the file, "1.txt".
- * Create the file, "3.txt", by extracting all the lines from
- * the file, "2.txt", that contain the word "toad".
- *
- * NOTE: None of the comments in this make file are required. They have
- * been provided to help you understand how CMAKE handles each
- * command. In other words, this make file could be reduced down to
- * the following two commands:
- *
- * sort <1.txt >2.txt
- * find "toad" <2.txt >3.txt
- *
- *****************************************************************************/
-
- /*****************************************************************************
- * 2.TXT
- *
- * The following SORT command will be executed only when one of the
- * following conditions is true:
- *
- * 1. "2.txt" does not exist.
- * 2. "1.txt" is newer than "2.txt".
- *
- *****************************************************************************/
-
- sort <1.txt >2.txt
-
- /*****************************************************************************
- * 3.TXT
- *
- * The following FIND command will be executed only when one of the
- * following conditions is true:
- *
- * 1. "3.txt" does not exist.
- * 2. "2.txt" is newer than "3.txt".
- *
- *****************************************************************************/
-
- find "toad" <2.txt >3.txt
-